package org.example.main.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.main.entity.Admin;
import java.util.List;

@Mapper
public interface AdminMapper {
    Admin findByUsername(String username);
    int insert(Admin admin);
    int updateById(Admin admin);
    int deleteById(long adminId);
    Admin findById(long adminId);
    List<Admin> findAll();
    List<Admin> getUserByPage(int start, int size);
}

